import Vue from 'vue'
import Router from 'vue-router'
import { deCentralization,lazyVue} from '@/utils'
const routerView = deCentralization(
    require.context('./', true, /\.\/\w+\/\w+\.js/),
    (a, b) => [...a, ...b]
)
console.log(routerView)
Vue.use(Router)

const router = new Router({
    routes: [{
        path:'/',
        name:'App',
        component:lazyVue('layOut',true),
        children:[...routerView]
    }]
})
console.log(router)
export default router